package com.entmanage.base.hrm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.entmanage.common.utils.SecurityUtils;
import com.entmanage.base.hrm.mapper.HrmEmployeeExperienceMapper;
import com.entmanage.base.hrm.domain.HrmEmployeeExperience;
import com.entmanage.base.hrm.service.IHrmEmployeeExperienceService;

/**
 * 员工工作经历子Service业务层处理
 *
 * @author lsq
 * @date 2025-09-02
 */
@Service
public class HrmEmployeeExperienceServiceImpl implements IHrmEmployeeExperienceService
{
    @Autowired
    private HrmEmployeeExperienceMapper hrmEmployeeExperienceMapper;

    /**
     * 查询员工工作经历子
     *
     * @param expId 员工工作经历子主键
     * @return 员工工作经历子
     */
    @Override
    public HrmEmployeeExperience selectHrmEmployeeExperienceByExpId(Long expId)
    {
        return hrmEmployeeExperienceMapper.selectHrmEmployeeExperienceByExpId(expId);
    }

    /**
     * 查询员工工作经历子列表
     *
     * @param hrmEmployeeExperience 员工工作经历子
     * @return 员工工作经历子
     */
    @Override
    public List<HrmEmployeeExperience> selectHrmEmployeeExperienceList(HrmEmployeeExperience hrmEmployeeExperience)
    {
        return hrmEmployeeExperienceMapper.selectHrmEmployeeExperienceList(hrmEmployeeExperience);
    }

    /**
     * 新增员工工作经历子
     *
     * @param hrmEmployeeExperience 员工工作经历子
     * @return 结果
     */
    @Override
    public int insertHrmEmployeeExperience(HrmEmployeeExperience hrmEmployeeExperience)
    {
        return hrmEmployeeExperienceMapper.insertHrmEmployeeExperience(hrmEmployeeExperience);
    }

    /**
     * 修改员工工作经历子
     *
     * @param hrmEmployeeExperience 员工工作经历子
     * @return 结果
     */
    @Override
    public int updateHrmEmployeeExperience(HrmEmployeeExperience hrmEmployeeExperience)
    {
        return hrmEmployeeExperienceMapper.updateHrmEmployeeExperience(hrmEmployeeExperience);
    }

    /**
     * 批量删除员工工作经历子
     *
     * @param expIds 需要删除的员工工作经历子主键
     * @return 结果
     */
    @Override
    public int deleteHrmEmployeeExperienceByExpIds(Long[] expIds)
    {
        return hrmEmployeeExperienceMapper.deleteHrmEmployeeExperienceByExpIds(expIds);
    }

    /**
     * 删除员工工作经历子信息
     *
     * @param expId 员工工作经历子主键
     * @return 结果
     */
    @Override
    public int deleteHrmEmployeeExperienceByExpId(Long expId)
    {
        return hrmEmployeeExperienceMapper.deleteHrmEmployeeExperienceByExpId(expId);
    }

    @Override
    public List<HrmEmployeeExperience> selectExperienceByEmpId(Long empId)
    {
    	return hrmEmployeeExperienceMapper.selectByEmpId(empId);
    }
}
